var express = require('express');
var app = express();

app.listen(8080);

app.use(express.static(__dirname + '/public'));

app.get('/', function(req, res) {
  res.render('index');
});

app.get('/:page', function(req, res) {
  res.render(req.params.page);
});